#include <Windows.h>
#include <tchar.h>
#include <Winbase.h>

void CALLBACK WorkProc(PTP_CALLBACK_INSTANCE Instance, PVOID Context, PTP_WORK Work)
{
	_tprintf(_T("Current Thread: 0x%0X"), GetCurrentThread());

	return;
}

void main()
{
	PTP_WORK Work = CreateThreadpoolWork(WorkProc, NULL, NULL);
	for (int ii = 0; ii < 5; ii++)
	{
		SubmitThreadpoolWork(Work);
	
		WaitForThreadpoolWorkCallbacks(Work, FALSE);
	}

	return;
}